#ifndef SCENEEND_H
#define SCENEEND_H
#include "scene.h"
#include <string>
#include <SDL_mixer.h>

namespace STG{
    class sceneEnd: public STG::scene
    {
    private:
        bool isWrite = true;
        float blink = 0.0f;
        std::string name = "";
        Mix_Music* bgm = nullptr;
    public:

        virtual void update(float deltaTime);
        virtual void init();
        virtual void render();
        virtual void clean();
        virtual void handleEvents(SDL_Event* event);
        void renderText1();
        void renderText2();
        void removeLastUTF8Char(std::string& str);
    };
}

#endif // SCENEEND_H